<?php

class Core_Action_Admin_System_Report_Log_Clear extends Action_Admin
{
	function execute($request, $initial = false, $script = null)
	{
		if ($initial)
		{
			// check if bread crum is available
			$breadcrums = array(
				array(
					'url' => 'admin/report',
					'label' => 'Report'
				),
			);

			Agilet::setVar('breadcrum', $breadcrums);
		}
		
		$c = Model::getTable('core/log') -> delete();

		Response::redirect('admin/report/log');
	}

}
